import request from "@/utils/request";

// 查询付款详情列表
export function listCsmPayD(query) {
  return request({
    url: "/machine/csmPayD/list",
    method: "get",
    params: query,
  });
}

// 查询付款详情详细
export function getCsmPayD(id) {
  return request({
    url: "/machine/csmPayD/" + id,
    method: "get",
  });
}

// 新增付款详情
export function addCsmPayD(data) {
  return request({
    url: "/machine/csmPayD",
    method: "post",
    data: data,
  });
}

// 修改付款详情
export function updateCsmPayD(data) {
  return request({
    url: "/machine/csmPayD",
    method: "put",
    data: data,
  });
}

// 删除付款详情
export function delCsmPayD(id) {
  return request({
    url: "/machine/csmPayD/" + id,
    method: "delete",
  });
}

// 查询入库应付数据
export function payLkList(query) {
  return request({
    url: "/machine/csmPayD/payLkList",
    method: "get",
    params: query,
  });
}
